-- GENERATED SPELL FOR [Disciple of Naralex] --


function spell0_3678(pUnit, Event) --@Druid\'s Potion,Self--
pUnit:FullCastSpellOnTarget(8141,pUnit)
pUnit:RegisterEvent('Sorts_3678', 533, 1)
end

function spell1_3678(pUnit, Event) --@Mark of the Wild,n/a--
pUnit:FullCastSpellOnTarget(5232,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3678', 620, 1)
end

function spell2_3678(pUnit, Event) --@Serpentine Cleansing,Self--
pUnit:FullCastSpellOnTarget(6270,pUnit)
pUnit:RegisterEvent('Sorts_3678', 30000, 1)
end

function spell3_3678(pUnit, Event) --@Sleep,n/a--
pUnit:FullCastSpellOnTarget(1090,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3678', 31500, 1)
end

function Sorts_3678(pUnit, Event)
local choix_sorts_3678 = math.random(0, 3)
if choix_sorts_3678 == 0 then
pUnit:RegisterEvent('spell0_3678', 1, 1)
end
if choix_sorts_3678 == 1 then
pUnit:RegisterEvent('spell1_3678', 1, 1)
end
if choix_sorts_3678 == 2 then
pUnit:RegisterEvent('spell2_3678', 1, 1)
end
if choix_sorts_3678 == 3 then
pUnit:RegisterEvent('spell3_3678', 1, 1)
end
end

function mob3678_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3678', math.random(1500, 3000), 1)
end

function mob3678_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3678_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3678_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3678, 1, 'mob3678_Action')
RegisterUnitEvent(3678, 2, 'mob3678_Leave')
RegisterUnitEvent(3678, 3, 'mob3678_Kill')
RegisterUnitEvent(3678, 4, 'mob3678_Die')
